package 集合;

import java.util.ArrayList;
import java.util.List;

public class t3 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
        System.out.println(list);
        System.out.println(list.set(0,"qqq"));
        System.out.println(list);
        System.out.println(list.remove(1));
        System.out.println(list);

    }
}
